import App from './App'

// #ifndef VUE3
import Vue from 'vue'
import './uni.promisify.adaptor'
Vue.config.productionTip = false
App.mpType = 'app'
// Vue.component('page-head', PageHead)// 注册为全局组件
const app = new Vue({
  store, // 挂载 store
  ...App
})
app.$mount()
// #endif

// #ifdef VUE3
import { createSSRApp } from 'vue'
import PageHead from './pages/comp/page-head/page-head.vue' // 路径按实际调整
import store from './store'
export function createApp() {
  const app = createSSRApp(App)
  app.use(store)
  app.component('page-head', PageHead)
  return {
    app
  }
}
// #endif